/*
 * @(#)AutoCompleteInputBoxTag.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.framework;

import java.util.List;

/**
	AutoCompleteBoxDWRFacade.java
	
	@author      Jim Zhou
	@company     DCIVision Limited
	@creation date   2006/09/19
	@version     $Revision: 1.3.2.1 $
*/

public class AutoCompleteBoxDWRFacade extends DWRFacade {

	public AutoCompleteBoxDWRFacade() {
		super();
		
	}
	
  /**
   * get auto suggest value.
   * @param args          	 String[]
   * @param boxType          String
   * @return                 listData
   */
	public List getResultList(String[] args,String boxType){
		AutoCompleteInputBoxManagerFactory autoCompleteInputBoxManagerFactory = AutoCompleteInputBoxManagerFactory.getInstance();
		if (autoCompleteInputBoxManagerFactory.getBoxTypeExists(boxType)){
			AutoCompleteInputBoxManager autoCompleteInputBoxManager = autoCompleteInputBoxManagerFactory.getAutoCompleteInputBoxManager(boxType);
			return autoCompleteInputBoxManager.retrieveInformation(args,this.getSessionContainer());
		}
		return null;
	}
}
